@import 'basicColor';

//页面的共有布局
html,
body {
  font-family: Helvetica, Arial, 'Microsoft Yahei', 'Hiragino Sans GB', 'Heiti SC',
    'WenQuanYi Micro Hei', sans-serif;
  width: 100%;
  height: 100%;
  //min-width: 1140px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body,
button,
dd,
div,
dl,
dt,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
input,
li,
ol,
p,
td,
textarea,
th,
ul {
  margin: 0;
  padding: 0;
}

.cmss-layout {
  position: relative;
  width: 100%;
  height: 100%;

  .layout-header {
    position: absolute;
    width: 100%;
    height: 63px;
    line-height: 64px;
    text-align: center;
    background: #ffffff;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .layout-siderbar {
    display: block;
    position: absolute;
    width: auto;
    left: 0;
    top: 64px;
    bottom: 0;
    background: #ffffff;
    border-right: 1px solid #f2f4f6;
  }

  .layout-container {
    background: none repeat scroll 0 0 #f5f6fa;
    position: absolute;
    flex: 1;
    //left: 180px;
    right: 0;
    top: 64px;
    bottom: 0;
    width: calc(100% - 64px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-y: auto;
    border-left: 1px solid rgb(233, 235, 239) !important;
    opacity: 1; //内容为展示，透明度100%
    transition: width 0.32s ease, opacity 1s ease;
  }

  .layout-collapse {
    z-index: 1;
    position: absolute;
    top: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 0;
    height: 54px;
    left: 184px;
    border-left: 10px solid #344058;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 0 2px 2px 0;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    cursor: pointer;

    &::before {
      position: absolute;
      top: 50%;
      left: -5px;
      transform: translate(-50%, -50%);
      content: '';
    }
  }

  .layout-container-full {
    left: 0px;
  }
}

@font-face {
  font-family: DINCondensed-Bold;
  src: url(assets/fonts/DINCondensed-Bold.ttf);
}

.cmss-views {
  height: 100%;
  background: #f5f6fa;

  .views-title {
    height: 60px;
    line-height: 60px;
    background-color: rgb(255, 255, 255);
    //display: flex;

    .title-span {
      padding-left: 20px;
      font-family: MicrosoftYaHei;
      font-size: 16px;
      font-weight: 400;
      text-align: left;
      color: rgb(3, 17, 41);
    }

    .title-right {
      margin-left: auto;
      margin-right: 20px;
      width: 30%;
    }
  }

  .views-alert {
    padding: 10px 20px 10px 20px;
  }

  .views-content {
    margin: 10px;
    background-color: rgb(255, 255, 255);
  }

  .views-content-header {
    margin: 0px 20px 14px 20px;
  }

  .views-content-body {
    margin: 0 20px;
  }

  .views-content-bottom {
    margin: 0 20px;
    padding-bottom: 20px;
  }
}

//组合面包屑
.breadcrumb-combination {
  .back-button {
    float: left;
    background: $bgWhiteColor;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    color: #555555;
    text-align: center;
    margin-top: 18px;
    margin-right: 10px;
    cursor: pointer;

    div {
      font-size: 10px;
      font-weight: 700;
      height: 22px;
      line-height: 22px;
    }
  }

  .back-button:hover,
  .back-button:focus {
    border: 1px solid $primaryColor;
    color: $primaryColor;
  }

  .back-button.is-active,
  .back-button:active {
    background: #e1ecff;
    border: 1px solid $primaryColor;
    color: $primaryColor;
  }
}

.note {
  font-family: PingFangSC-Regular;
  font-size: 12px;
  color: #bbbbbb;
  height: 18px;
  line-height: 18px;
}

.nt-buy-p {
  font-size: 14px;
  color: #333333;
  text-align: center;
  line-height: 30px;
}

//组合进度条
.progress-panel {
  .progress-title {
    margin-right: 32px;
    height: 40px;

    .progress-count {
      font-size: 14px;
      color: #22303e;
      font-family: MicrosoftYaHei;
    }

    .progress-count2 {
      font-family: MicrosoftYaHei;
      font-size: 12px;
      color: #4f596a;
    }
  }

  .progress-item {
    .el-progress {
      .el-progress-bar {
        padding-right: 32px;
        border-radius: 2px;

        .el-progress-bar__outer {
          height: 4px !important;
          background-color: #e2effd;
        }

        .el-progress-bar__inner {
          background-image: linear-gradient(-90deg, #7e60fb 0%, #3399e5 100%);
        }
      }

      .el-progress__text {
        float: right;
        font-family: PingFang SC;
        font-size: 12px !important;
        color: #4f596a;
      }
    }
  }
}

//status的加·样式
.status-success {
  color: #10c038;
  font-family: PingFangSC-Regular;
  font-size: 12px;

  .point {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10c038;
  }
}

.status-info {
  color: #75849b;
  font-family: PingFangSC-Regular;
  font-size: 12px;

  .point {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #75849b;
  }
}

.status-danger {
  color: #f04134;
  font-family: PingFangSC-Regular;
  font-size: 12px;

  .point {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f04134;
  }
}

.status-warning {
  color: #ff931d;
  font-family: PingFangSC-Regular;
  font-size: 12px;

  .point {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff931d;
  }
}

.status-primary {
  color: #337dff;
  font-family: PingFangSC-Regular;
  font-size: 12px;

  .point {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #337dff;
  }
}

//图标按钮
.icon-button {
  height: 32px;
  line-height: 16px;
  padding: 9px 9px !important;
  font-size: 14px;
  color: #555555;
}

//表格为空样式
.empty-table {
  display: inline-block;
  margin-left: 5px;
  font-family: PingFangSC-Regular;
  font-size: 14px;
  color: #555555;
  height: 40px;
  line-height: 40px;
}

.last-th {
  .cell {
    border-right: none !important;
  }
}

//弹框中的提示文字
.sup-title {
  position: absolute;
  font-family: MicrosoftYaHei;
  font-size: 12px;
  color: rgb(204, 204, 204);
  height: 30px;
  line-height: 22px;
}

//列表为空时，显示svg图标的样式
.ecloud_emptyTable {
  background: url('~@/assets/svg/empty-table.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 20px;
  height: 25px;
  position: relative;
  bottom: 1px;
  right: 5px;
  vertical-align: middle;
}

//云安全管理中心logo
.ecloud_logo {
  background: url('~@/assets/svg/iot.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 30px;
  height: 55px;
  position: relative;
  bottom: 2px;
  left: 10px;
  vertical-align: middle;
}

//logo title
.logo_title {
  background: url('~@/assets/svg/iot.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 45px;
  height: 45px;
  position: relative;
  margin-right: 80px;
  vertical-align: middle;
}


//柱状图缺省图样式
.default-bar-chart {
  background: url('~@/assets/svg/default-bar-chart.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 200px;
  height: 200px;
  position: relative;
  bottom: 1px;
  right: 5px;
  vertical-align: middle;
}

//账户状态的样式
.activeStatusStyle {
  width: 60px;
  height: 20px;
  border-radius: 2px;
  background-color: rgba(224, 249, 242, 1);
  line-height: 18px;
  text-align: center;
  color: rgba(0, 208, 151, 1);
  font-weight: 700;
}

.expireStatusStyle {
  width: 60px;
  height: 20px;
  border-radius: 2px;
  background-color: rgb(233, 237, 242);
  line-height: 18px;
  text-align: center;
  color: rgb(117, 132, 155);
  font-weight: 700;
}

.onlineStatusStyle {
  width: 60px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid rgb(51, 125, 255);
  background-color: rgb(225, 236, 255);
  line-height: 18px;
  text-align: center;
  color: rgb(51, 125, 255);
}

//权限样式
.permissionStyle {
  display: inline-block;
  text-align: center;
  line-height: 18px;
  border: 1px solid rgb(51, 125, 255);
  border-radius: 2px;
  width: 60px;
  height: 20px;
  font-size: 12px;
  color: rgb(51, 125, 255);
  background-color: rgb(225, 236, 255);
}

//权限样式
.offlineStyle {
  display: inline-block;
  text-align: center;
  line-height: 18px;
  border: 1px solid #FF931D;
  border-radius: 2px;
  width: 60px;
  height: 20px;
  font-size: 12px;
  color: #FF931D;
  background-color: #FFF3CD;
}

//计数器样式
.num {
  .num-input {
    //margin-left: 20px;
    margin-right: 10px;

    .el-input-number__decrease,
    .el-input-number__increase {
      width: 20px;
      visibility: visible !important;
    }
  }

  .explain {
    //margin-left: 20px;
    font-family: PingFangSC-Regular;
    font-size: 12px;
    color: #cccccc;
    line-height: 20px;
    //margin-bottom: 18px;
  }

  span {
    color: #333333;
    font-size: 12px;
  }
}

//一键复制图标样式
.dq-fuzhi1 {
  margin-left: 5px;
  font-size: 12px !important;
  color: #3a84ff;
  cursor: pointer;
}

//放大-图标
.enlarge {
  background: url('~@/assets/svg/big.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 0.1rem;
  height: 0.1rem;
  position: relative;
  vertical-align: middle;
  right: 10px;
  bottom: 1px;
}

.restart {
  background: url('~@/assets/svg/restart.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 0.1rem;
  height: 0.1rem;
  position: relative;
  vertical-align: middle;
  right: 10px;
  bottom: 1px;
}

//缩小-图标
.reduce1 {
  background: url('~@/assets/svg/small.svg') center center no-repeat;
  background-size: 100% 100%;
  display: inline-block;
  width: 0.1rem;
  height: 0.1rem;
  position: relative;
  vertical-align: middle;
  right: 10px;
  bottom: 1px;
}

.circle-undisposed {
  float: left;
  margin: 6px 6px 0 0;
  width: 6px;
  height: 6px;
  border: 1px solid #f04134;
  border-radius: 100%;
  background: #f04134;
}

.circle-disposed {
  float: left;
  margin: 5px 5px 0 0;
  width: 5px;
  height: 5px;
  border: 1px solid #10c038;
  border-radius: 100%;
  background: #10c038;
}